package com.liugui.exception;

/**
 * @ClassName: ThrowTest
 * @Author: liugui
 * @Date: 2020-11-04 17:36
 **/
public class ThrowTest {
    public static void main(String[] args) {
        Integer a = 1,b = null;
        if ( a == null || b == null){
            throw new NullPointerException();
        }else {
            System.out.println( a + b);
        }
    }
}
